package cn.sciento.farm.devicemanager.gateway.model.lorawan;

/**
 * @author wumu
 * @version V1.0
 * @date 9/20/18
 * @time 6:24 PM
 */
public class LorawanDeviceStatus {

    /**
     * applicationID : 123
     * applicationName : temperature-sensor
     * deviceName : garden-sensor
     * devEUI : 0202020202020202
     * battery : 200
     * margin : 6
     * "externalPowerSource": false,
     *     "batteryLevelUnavailable": false,
     *     "batteryLevel": 75.5
     */

    private String applicationID;
    private String applicationName;
    private String deviceName;
    private String devEUI;
    private Integer battery;
    private Integer margin;
    private Boolean externalPowerSource;
    private Boolean batteryLevelUnavailable;
    private Float batteryLevel;

    public String getApplicationID() {
        return applicationID;
    }

    public void setApplicationID(String applicationID) {
        this.applicationID = applicationID;
    }

    public String getApplicationName() {
        return applicationName;
    }

    public void setApplicationName(String applicationName) {
        this.applicationName = applicationName;
    }

    public String getDeviceName() {
        return deviceName;
    }

    public void setDeviceName(String deviceName) {
        this.deviceName = deviceName;
    }

    public String getDevEUI() {
        return devEUI;
    }

    public void setDevEUI(String devEUI) {
        this.devEUI = devEUI;
    }

    public Integer getBattery() {
        return battery;
    }

    public void setBattery(Integer battery) {
        this.battery = battery;
    }

    public Integer getMargin() {
        return margin;
    }

    public void setMargin(Integer margin) {
        this.margin = margin;
    }

    public Boolean getExternalPowerSource() {
        return externalPowerSource;
    }

    public void setExternalPowerSource(Boolean externalPowerSource) {
        this.externalPowerSource = externalPowerSource;
    }

    public Boolean getBatteryLevelUnavailable() {
        return batteryLevelUnavailable;
    }

    public void setBatteryLevelUnavailable(Boolean batteryLevelUnavailable) {
        this.batteryLevelUnavailable = batteryLevelUnavailable;
    }

    public Float getBatteryLevel() {
        return batteryLevel;
    }

    public void setBatteryLevel(Float batteryLevel) {
        this.batteryLevel = batteryLevel;
    }

    @Override
    public String toString() {
        return "LorawanDeviceStatus{" +
                "applicationID='" + applicationID + '\'' +
                ", applicationName='" + applicationName + '\'' +
                ", deviceName='" + deviceName + '\'' +
                ", devEUI='" + devEUI + '\'' +
                ", battery=" + battery +
                ", margin=" + margin +
                ", externalPowerSource=" + externalPowerSource +
                ", batteryLevelUnavailable=" + batteryLevelUnavailable +
                ", batteryLevel=" + batteryLevel +
                '}';
    }
}
